package com.ruoyi.applet.appletReceivingAddress.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序用户收货地址对象 applet_receiving_address
 * @author ruoyi
 * @date 2024-12-17
 */
public class AppletReceivingAddress extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /** 收货地址id */
    private Long id;
    
    /** 用户id */
    @Excel(name = "用户id")
    private Long wxUserId;
    
    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String receiverName;
    
    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String receiverPhone;
    
    /** 省 */
    @Excel(name = "省")
    private String province;
    
    /** 市 */
    @Excel(name = "市")
    private String city;
    
    /** 区 */
    @Excel(name = "区")
    private String area;
    
    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addressLine;
    
    /** 邮政编码 */
    @Excel(name = "邮政编码")
    private String postalCode;
    
    /** 是否默认（1-是，2-否） */
    @Excel(name = "是否默认", readConverterExp = "1=-是，2-否")
    private Integer isDefault;
    
    /** 删除标记（0正常，1删除） */
    private Integer delFlag;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getWxUserId() {
        return wxUserId;
    }
    
    public void setWxUserId(Long wxUserId) {
        this.wxUserId = wxUserId;
    }
    
    public String getReceiverName() {
        return receiverName;
    }
    
    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }
    
    public String getReceiverPhone() {
        return receiverPhone;
    }
    
    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }
    
    public String getProvince() {
        return province;
    }
    
    public void setProvince(String province) {
        this.province = province;
    }
    
    public String getCity() {
        return city;
    }
    
    public void setCity(String city) {
        this.city = city;
    }
    
    public String getArea() {
        return area;
    }
    
    public void setArea(String area) {
        this.area = area;
    }
    
    public String getAddressLine() {
        return addressLine;
    }
    
    public void setAddressLine(String addressLine) {
        this.addressLine = addressLine;
    }
    
    public String getPostalCode() {
        return postalCode;
    }
    
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
    
    public Integer getIsDefault() {
        return isDefault;
    }
    
    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
    
    public Integer getDelFlag() {
        return delFlag;
    }
    
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("wxUserId", getWxUserId())
                .append("receiverName", getReceiverName())
                .append("receiverPhone", getReceiverPhone())
                .append("province", getProvince())
                .append("city", getCity())
                .append("area", getArea())
                .append("addressLine", getAddressLine())
                .append("postalCode", getPostalCode())
                .append("isDefault", getIsDefault())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
